import Vue from 'vue'
import App from './App.vue'
import Home from './Home.vue'
import About from './About.vue'
import Blog from './Blog.vue'
// import VueRouter from 'vue-router'
import VueRouter from './vueRouter'

Vue.config.productionTip = false
Vue.use(VueRouter);

const router = new VueRouter({
  mode:'history',
  routes:[
    {
      path:'/',
      component:Home
    },    {
      path:'/about',
      component:About
    },    {
      path:'/blog',
      component:Blog
    }
  ]
})

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
